/**
 * @author wn
 * @date 2023/08/18 10:59:29
 * @description: 分类 API 接口
 */

import { request } from '@/utils/request'

enum Url {
	CategoryTop = '/category/top',
}

/**
 * 分类 -- 所有数据 Primary-secondary
 * @returns Promise
 */
export const getCategoryTopApi = () =>
	request<CategoryPrimary[]>({
		method: 'GET',
		url: Url.CategoryTop,
	})
